<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="span3">
		<div class="well sidebar-nav">
			<ul class="nav nav-list">
				<!-- requestScope.cId是从href="home.do?cId=${catalog.id}传到homeservlet里
					   经过request包装后得到的
					c:forEach循环里每一次的循环都是一个catalog对象
				 -->
				<c:forEach var="catalog" items="${requestScope.catalogList}">
				<li class="${catalog.id == requestScope.catalogId ? 'active' : '' }">
					<a href="home.do?cId=${catalog.id}">
						${catalog.name}
					</a>
				</li>
				</c:forEach>
			</ul>
		</div>
	</div>

</body>
</html>